package com.cskaoyan.ribbon;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 创建日期: 2023/01/05 17:43
 *
 * @author ciggar
 */
// 如果不希望RibbonConfig成为负载均衡的全局配置，那么需要在启动类扫描包里面把RibbonConfig摘除出来
@SpringBootApplication(scanBasePackages = {"com.cskaoyan.ribbon.config","com.cskaoyan.ribbon.test"})
@EnableDiscoveryClient
public class RibbonConsumer {

    public static void main(String[] args) {

        SpringApplication.run(RibbonConsumer.class,args);

    }
}
